/**
 * 
 */
package com.cqan.account.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cqan.account.dao.UserDao;
import com.cqan.account.entity.User;
import com.cqan.account.service.UserService;
import com.cqan.service.impl.EntityServiceImpl;

/**
 * @Description 用户服务层
 * @author slaton.wu@gmail.com
 * @date 2012-6-29下午7:15:37
 *
 */
@Service("userService")
public class UserServiceImpl extends EntityServiceImpl<User, Long, UserDao>
		implements UserService {

	
	@Override
	public User getUserByUserName(String username) {
		
		return entityDao.findUniqueBy("username", username);
	}

	
	@Override
	@Autowired
	public void setEntityDao(UserDao entityDao) {
		this.entityDao = entityDao;
	}

	
}
